﻿<%@ Page Title="Wish List Two" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="wishList2.aspx.cs" Inherits="wishList2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

   <script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script>
 <script type="text/javascript" src="scripts/jquery-scripts.js"></script>
<script type="text/javascript">
    function ClientValidate(source, clientside_arguments) {
        if ($('#<%=chkTC.ClientID %>').is(":checked")) {
            $('#tcDiv').removeClass("required");
            clientside_arguments.IsValid = true;
        } else {
            // add class to change colour
        $('#tcDiv').addClass("required").get(0).focus();
            clientside_arguments.IsValid = false;
        }
   
   
   
//      if (document.aspnetForm.<%=chkTC.ClientID %>.checked == false) {
//        $('#tcDiv').addClass("required").get(0).focus();
//        clientside_arguments.IsValid = false;
//        alert("notyet")
//    } else{
//    $('#tcDiv').removeClass("required");
//        clientside_arguments.IsValid = true;
//        alert("yes")
//    
//    }

//    if ($('<%=chkTC.ClientID %>').checked==true) 
//    
//    {

//      alert("yes")
//      $('#tcDiv').removeClass("required");
//      clientside_arguments.IsValid = true;
//    }
//    else {
//        alert("no")
//        $('#tcDiv').addClass("required").get(0).focus();
//      clientside_arguments.IsValid = false;
//    }
  
}

 </script>   



</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="containerNarrow" style="background-image: url(img/backgrounds/jumper_bg.jpg)">
        <div id="copyContent">
            <h2>
                Wish List</h2>
            <asp:Panel ID="pnlEntry" runat="server">
                <asp:Panel ID="pnlEntryA" runat="server">
                    <div id="details-01">
                        <p class="intro">
                            Here at The Chimes we want to make Christmas as easy for you as possible, so why
                            not complete the form below and send out your wish list to friends and family members
                            so that they know exactly what to buy you this Christmas! Your Christmas wish list
                            will also be sent to The Chimes and you could be one of 5 lucky shoppers whose wish
                            comes true.</p>
                        <div class="text-input">
                            <asp:Label AssociatedControlID="txtFirstname" runat="server">Firstname *
<%--                            <asp:CustomValidator ControlToValidate="txtFirstname" 
                            
                                    ClientValidationFunction="ClientValidate" ErrorMessage="no!"  
                                    ID="cvAd1"
                                    runat="server" />
--%>                                
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtFirstname"
                                    runat="server" EnableClientScript="true" CssClass="required" SetFocusOnError="true" EnableTheming="false" ErrorMessage="Required" />
                            </asp:Label>
                            <asp:TextBox ID="txtFirstname" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label1" AssociatedControlID="txtSurname" runat="server">
                                Surname *
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtSurname"
                                    runat="server" ErrorMessage="Required" />
                            </asp:Label>
                            <asp:TextBox ID="txtSurname" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label2" AssociatedControlID="txtEmail" runat="server">Email *
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtEmail"
                                    runat="server" ErrorMessage="Required" />
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtEmail"
                                    ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z+])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"
                                    runat="server" EnableClientScript="true" ErrorMessage="Check email" />
                            </asp:Label>
                            
                            <asp:TextBox ID="txtEmail" class="text" runat="server" />
                        </div>
                        <div>
                            <fieldset>
                            <span>
                                <input type="radio" name="gir_sex" class="gir_sex" id="rbM" value="Male" checked="checked" />
                                    Male
                                </span>
                            <span>
                                    <input type="radio" name="gir_sex" class="gir_sex" id="gir_female" value="Female" />
                                    Female</span>
                                * required
                            </fieldset>
                        </div>
                        
                        <div class="clearfix">
                            <asp:ImageButton ID="btnOpenPnlB" ImageUrl="~/img/go.gif" runat="server" onclick="btnOpenPnlB_Click" />
                        </div>
                        
                        <%--<div>
                            <a href="#details-02" id="details-02-go">
                                <img src="img/go.gif" width="48" height="43" alt="GO" /></a>
                        </div>
                        <div id="mainsite">
                            <p>
                            </p>
                        </div>--%>
                    </div>
                    <!-- details-01 -->
                </asp:Panel>
                
                <asp:Panel ID="pnlEntryB" Visible="false" runat="server">
                   <%-- <a name="details-02"></a>--%>
                    <div id="details-02">
                      <%--  <div>
                            <a href="#details-01" id="details-01-go">
                                <img src="img/back.gif" width="50" height="40" alt="Back" /></a>
                        </div>--%>
                        <div>
                            <p>
                                Complete this form with as much or as little information as you want. Then send
                                it to all your friends, family and colleagues and be entered to win &pound;300 of
                                Chimes vouchers.</p>
                        </div>
                
                        <asp:Panel ID="pnlAddres1" runat="server" CssClass="text-input">
                             <asp:Label AssociatedControlID="txtAddres1" runat="server">Address</asp:Label>
                             <asp:TextBox ID="txtAddres1" class="text" runat="server" />
                        </asp:Panel>
                
                        <asp:Panel ID="pnlAddress2" runat="server" CssClass="text-input">
                            <asp:Label ID="Label5" AssociatedControlID="txtAddres1" runat="server">Address</asp:Label>
                            <asp:TextBox ID="txtAddress2" class="text" runat="server" />
                        </asp:Panel>
                
                        <div class="text-input">
            <asp:Label ID="Label6" AssociatedControlID="txtPostCode" runat="server">Postcode</asp:Label>
                            <asp:TextBox ID="txtPostCode" class="text shortvalue" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label7" AssociatedControlID="txtFriends" runat="server">Send my form to:
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtFriends" EnableClientScript="true" SetFocusOnError="true" ErrorMessage="Required!" runat="server"/>
                            </asp:Label>
                            <asp:TextBox ID="txtFriends" TextMode="MultiLine" class="text" runat="server" />
                            <p class="explaination">
                                Add as many friend's email addresses as you like, separated by a comma; e.g. bob@thechimes.co.uk,
                                sarah@thechimes.co.uk, john@thechimes.co.uk</p>
                        </div>
                        
                        <div class="divider">
                        </div>
                        
                        <asp:Panel ID="pnlShirtSize" runat="server" CssClass="text-input">
                            <asp:Label ID="Label8" AssociatedControlID="txtShirtSize" runat="server">Shirt size</asp:Label>
                            <asp:TextBox ID="txtShirtSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlCollarSize" runat="server" CssClass="text-input">
                            <asp:Label ID="Label9" AssociatedControlID="txtCollarSize" runat="server"> Collar size</asp:Label>
                            <asp:TextBox ID="txtCollarSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlWaistSize" runat="server" CssClass="text-input">
                            <asp:Label ID="Label10" AssociatedControlID="txtWaistSize" runat="server">Waist size</asp:Label>
                            <asp:TextBox ID="txtWaistSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlInsideLeg" runat="server" CssClass="text-input">
                            <asp:Label ID="Label11" AssociatedControlID="txtInsideLeg" runat="server">Inside leg</asp:Label>                            
                            <asp:TextBox ID="txtInsideLeg" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlDressSize" runat="server" CssClass="text-input">
                            <asp:Label AssociatedControlID="txtDressSize" runat="server">Dress size</asp:Label>
                            <asp:TextBox ID="txtDressSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlTopSize" runat="server" CssClass="text-input">
                                <asp:Label ID="Label12" AssociatedControlID="txtTopSize" runat="server">Top size</asp:Label>
                                <asp:TextBox ID="txtTopSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlSkirtSize" runat="server" CssClass="text-input">
                          <asp:Label ID="Label13" AssociatedControlID="txtSkirtSize" runat="server">Skirt size</asp:Label>
                          <asp:TextBox ID="txtSkirtSize" class="text shortvalue" runat="server" />
                        </asp:Panel>
                        
                        <div class="text-input">
                          <asp:Label ID="Label14" AssociatedControlID="txtShoeSize" runat="server">Shoe size</asp:Label>
                            <asp:TextBox ID="txtShoeSize" class="text shortvalue" runat="server" />
                        </div>
                        
                        <asp:Panel ID="pnlBraSize" runat="server" CssClass="text-input">
                            <asp:Label ID="Label15" AssociatedControlID="txtBraSize" runat="server">Bra size</asp:Label>
                           <asp:TextBox ID="txtBraSize" class="text shortvalue" runat="server" />
                       </asp:Panel>
                       
                       <asp:Panel ID="pnlRingSize" runat="server" CssClass="text-input">
                        <asp:Label ID="Label16" AssociatedControlID="txtRingSize" runat="server">Ring size</asp:Label>
                       <asp:TextBox ID="txtRingSize" class="text shortvalue" runat="server" />
                       </asp:Panel>
                        <div class="divider">
                        </div>
                        <div class="text-input">
                         <asp:Label ID="Label17" AssociatedControlID="txtFavouriteColours" runat="server">Favourite colours</asp:Label>     
                            <asp:TextBox ID="txtFavouriteColours" class="text" runat="server" />
                        </div>
                        
                        <asp:Panel ID="pnlFavouriteSports" runat="server" CssClass="text-input">
                            <asp:Label ID="Label18" AssociatedControlID="txtFavouriteSports" runat="server">Favourite sports</asp:Label>
                            <asp:TextBox ID="txtFavouriteSports" class="text" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlFavouriteAftershaves" runat="server" CssClass="text-input">
                            <asp:Label ID="Label19" AssociatedControlID="txtFavouriteSports" runat="server">Favourite aftershaves</asp:Label>                       
                            <asp:TextBox ID="txtFavouriteAftershaves" class="text" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlFavouritePerfumes" runat="server" CssClass="text-input">
                            <asp:Label ID="Label20" AssociatedControlID="txtFavouritePerfumes" runat="server">Favourite perfumes</asp:Label>
                            <asp:TextBox ID="txtFavouritePerfumes" class="text" runat="server" />
                        </asp:Panel>
                        
                        <asp:Panel ID="pnlFavouriteCosmeticBrands" runat="server" CssClass="text-input">
                            <asp:Label ID="Label21" AssociatedControlID="txtFavouriteCosmeticBrands" runat="server">Favourite cosmetic brands</asp:Label>
                            <asp:TextBox ID="txtFavouriteCosmeticBrands" class="text" runat="server" />
                        </asp:Panel>
                        <div class="text-input">
                           <asp:Label ID="Label22" AssociatedControlID="txtFavouriteClothingBrands" runat="server">Favourite clothing brands</asp:Label>
                            <asp:TextBox ID="txtFavouriteClothingBrands" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                           <asp:Label ID="Label23" AssociatedControlID="txtFavouriteShops" runat="server">Favourite shops</asp:Label>
                            <asp:TextBox ID="txtFavouriteShops" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                           <asp:Label ID="Label24" AssociatedControlID="txtMusicalPreference" runat="server">Musical preference</asp:Label>
                            <asp:TextBox ID="txtMusicalPreference" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label25" AssociatedControlID="txtHobbies" runat="server">Hobbies</asp:Label>
                            <asp:TextBox ID="txtHobbies" class="text" runat="server" />
                        </div>
                        <div class="divider">
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label26" AssociatedControlID="txtWhatINeed" runat="server">What I need</asp:Label>
                            <asp:TextBox ID="txtWhatINeed" TextMode="MultiLine" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label27" AssociatedControlID="txtWhatIDontNeed" runat="server">What I don't need</asp:Label>
                            <asp:TextBox ID="txtWhatIDontNeed" TextMode="MultiLine" class="text" runat="server" />
                        </div>
                        <div class="text-input">
                            <asp:Label ID="Label28" AssociatedControlID="txtWhatIDontNeed" runat="server">Other info</asp:Label>
                            <asp:TextBox ID="txtOtherInfo" TextMode="MultiLine" class="text" runat="server" />
                        </div>
                        <div id="tcDiv">
                            <fieldset>
                               <asp:Label ID="lblTC" runat="server" AssociatedControlID="chkTC">
                                <asp:CheckBox ID="chkTC" runat="server" />
                                    I have read and agree to the <a href="#terms" id="terms-toggle">Terms &amp; Conditions</a>
                                        <asp:CustomValidator
                                        ID="CustomValidator1"
                                        ClientValidationFunction="ClientValidate"
                                        EnableClientScript="true"
                                        runat="server"
                                        ErrorMessage="Please Agree."
                                        onservervalidate="CustomValidator1_ServerValidate"/>
                               </asp:Label>
                            </fieldset>
                        </div>
                        <div id="terms">
                            <h4>Terms &amp; Conditions</h4>
                            <ol>
                                <li>This free prize draw is open to all UK residents aged 16 or over except for employees
                                    of The Chimes Shopping Park, their families, agencies or any other company directly
                                    connected with the administration of this promotion, who complete registration on
                                    the www.thefort.co.uk/its-the-fort-that-counts.com website by 25th December 2008.
                                    You do not need to buy anything to enter. </li>
                                <li>Registration completion is based on the following information being provided: name,
                                    home address and e-mail address. All registrations must be completed by 25th December
                                    2008 to be valid entries in the draw. </li>
                                <li>Emailed confirmation of registration will ensure automatic entry into the prize
                                    draw.</li>
                                <li>Only one entry per household. Third party registrations will not be accepted.</li>
                                <li>The draw will be made on 16th January 2009. </li>
                                <li>There is one prize of &pound;300 of The Chimes vouchers to be won. </li>
                                <li>The winner will be drawn independently and at random from all valid entries received
                                    and will be notified by email within 72 hours of the actual draw date. </li>
                                <li>No alternative prize is available and the prize is not transferable. </li>
                                <li>For winner's details please send an email to: <a href="mailto:helen.jenkins&#64;in2.co.uk">
                                    helen.jenkins&#64;in2.co.uk</a> within 28 days of the draw date. </li>
                                <li>The winner may be asked to participate in non paid publicity accompanying or resulting
                                    from this draw. </li>
                                <li>By entering the free prize draw, entrants agree to be bound by the rules and by
                                    any other requirements set out in promotional material.</li>
                                <li>The Chimes Shopping Park terms and conditions for voucher usage apply and will be
                                    detailed on presentation of prize.</li>
                            </ol>
                            <p>Promoter: The Chimes Shopping Park, 20 Chimes Parkway, Birmingham, B24 9FD.</p>
                        </div>
                        <div>
                            <fieldset>
                                <asp:Label ID="Label30" AssociatedControlID="chkOptOut" runat="server">
                                    <asp:CheckBox ID="chkOptOut" runat="server" />
                                    Tick the box if you do <strong>not</strong> wish to receive further information
                                    from The Chimes Shopping Park</asp:Label>
                            </fieldset>
                        </div>
                        <div class="clearfix">
                            <asp:ImageButton ID="btnSubmit" ImageUrl="~/img/submit.gif" runat="server"/>
                            <%--<asp:Button ID="btnSubmit" Text="Submit" CssClass="submit" runat="server" />--%>
                        </div>
                    </div>
                </asp:Panel>
            </asp:Panel>
            <asp:Panel ID="pnlThankyou" Visible="false" runat="server">
                <p>
                    Thank you for entering.</p>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
